SPCOM

STE PC Communications

User's Manual

Contents

Section

  1. Introduction
  2. Typical Applications
  3. Circuit Description
  4. Links and Options
  5. I/O Map
  6. Using the SPCOM
  7. Example Programs

Appendix

  1. Component List
  2. Connections
  3. Specification
  4. Circuit Diagram

© Arcom Control Systems 1988


Revision History

Manual PCB Comments
v1 iss 2 v1 iss 2 1988-02-02 First laser typeset in this format
v1 iss 3   1988-03-01 Minor edits
    1999-08-24 Scanned in, quick format and check.

Introduction

The SPCOM is a multi-function peripheral board which plugs into the bus of an STEbus computer system. Based around two 8250A/16450 type serial communications controller ICs and a custom LSI chip, it provides a PC-compatible communications environment. This consists of one Centronics parallel printer port and two RS232 serial communication channels, each capable of simultaneously transmitting and receiving at rates of up to 20 kilobaud (20000 bits per second) asynchronously, each with 5 associated control bits.

The pin-out on the printer connector is arranged so that a ribbon-cable can connect directly to a 25-way D-type IDC connector. Note that this differs slightly from the Centronics standard pinout in order to maintain PC-compatibility. The pinout of the RS232 connector (20-way Bergstick) is such that a 20-way ribbon cable can be directly connected to two PC-compatible 9-way D-type IDC connectors. An Arcom standard 10-way connector allows the two RS232 channels to be taken to a SERT1. The SERT1 board carries two 25-way D-type connectors as used by most RS232 equipment. Note that only TxD, RxD, CTS and RTS are used on the SERT1. Signals RI, DCD, DTR, DSR are not used on the SERT1 and the SPCOM should be programmed to ignore them.


Typical Applications

  • Serial link to printers, terminals, keyboards etc.
  • Communication via modem with computers world-wide.
  • In-house communication with mainframes/other micros
  • Background support e.g. printer spooler
  • Local Area Network

Circuit Description

The SPCOM board handles two types of I/O address decoding:

1. Standard STEbus decoding

If link LK1A is made, then the board is accessed in the range (BASE) to (BASE+7) inclusive, where BASE is defined by the links to the address comparator IC6. IC6 compares A11 - 5 with the links in LK5, and asserts pin 13 (!SEL) on IC4 (a custom PAL chip) if they match and ADRSTB* is low. IC8 is clocked by the 16 MHz SYSCLK, and controls I/O and DATACK* signal timing, and 8250A chip selects.

2. PC compatible decoding

If link LK1A is unmade, the printer and serial ports can reside at a choice of PC compatible addresses (278-27F, 378-37F or 3BC - 3BF) can be selected by LK1 B-E.

The PC uses non-vectored interrupts, with the controlling CPU either polling the internal interrupt flags of the 8250A or performing a non-vectored interrupt when the ATNRO* line set by LK1 goes low, and clearing the interrupt so that the 8250As can operate normally again.

IC11 and IC13 are 8250A ACE (Asynchronous Communications Element) chips which control one serial channel each. IC10, 12,14,15 and 16 buffer the TTL serial signals to RS232 levels and vice versa. IC9 is a custom chip which drives a parallel printer port. It should be noted that although the signals are Centronics compatible, the PC printer port connector is a 25-way D-type. The pinout of PL2 is such that a ribbon cable can directly connect it to an IDC 25-way D-type connector.


Links and Options

The board is described as seen from the component side with the 64-way bus connector to the right.

Note:
+ = the standard jumper connection
* = the signal is active-low

Link Positions.

Link area 1. I/O Address Selection

  LK1 A Make to select STE I/O address decoded by LK5. Link area 1.
  LK1 B SS Make to disable secondary serial port.
o o o o o
E D C B A
o o o o o
  LK1C SP Make to disable primary serial port
    If unmade, one of the links below will select one of
the PC standard addresses, as below:
  LK1D LK1E Printer port
  Made made Disabled
+ Made unmade At 378-37FH (LPT1)
  Unmade made At 278-27FH (LPT2)
  Unmade unmade At 3BC-3BFH (MDA printer port)

The SPCOM is made PC-compatible by default, enabling the two serial ports, and the printer port is the primary printer port.

Link areas 2-4. Interrupt levels

  LK2A IR7 to ATNRQ6* Link
area 2

Link
area 3
Link
area 4
+ LK2B IR7 to ATNRQ5*
  LK2C IR7 to ATNRQ7*
  o
  B
oAoCo
  o
  B
oAoCo
  o
  B
oAoCo
  LK3A IR3 to ATNRQ4*
+ LK3B IR3 to ATNRQ1*
  LK3C IR3 to ATNRQ6*
  LK4A IR4 to ATNRQ0*
+ LK4B IR4 to ATNRQ2*
  LK4G IR4 to ATNRQ3*

The SPCOM interrupt levels are made PC-compatible by default, by setting links LK2A in position B.

Link area 5. STEbus address decoding

  LK5G select if A5 low Link area 5
  LK5F select if A6 low o o o o o o o o
H G F E D C B A
o o o o o o o o
  LK5E select if A7 low
  LK5D select if A8 low
  LK5C select if A9 low
  LK5B select if A10 low
  LK5A select if A11 low

If you wish to have the SPCOM peripherals in a block of 32 contiguous I/O locations residing at any I/O base address, then make LK1A and define the appropriate address on LK5.

Making a link causes the board to respond when that address line is low. Leaving these links unmade makes the board respond when the corresponding address lines are high. Leaving all the links open therefore gives the board a base address of FF8 (Hex), i.e. A11 to A5 all high (A3 high, A2 to A0 always low, as fixed by the PPC1 chip).

Table 1. Links and address weights

LK1Address
Line
Hex
weight
Decimal
weight
H A4 10 16
G A5 20 32
F A6 40 64
E A7 80 128
D A8 100 256
C A9 200 512
B A10 400 1024
A A11 800 2048

I/O Map

The I/O map of the SPCOM board is given below, for jumpering as standard; i.e. with PC-compatible address decoding.

Table 2. PC- compatible STEbus I/O Addresses

Address Dir Bit Name Function
278 Rd/Wr 0-7 CD0-7 Printer port 2 data
279 Rd     Printer status port
    2-0   Returns with 1
3 ERRN Set if printer error asserted
4 SLCT Set if printer selected
5 PAPE Set if printer out of paper
6 ACKN Set if ACKN
7 BSYN Set if printer is busy
27A Rd/Wr     Printer control port
    0 STB Set to assert printer data Strobe
1 AFX Set to assert the autofeed select
2 ININ Set to assert initalise-printer (reset)
3 SLC Set to assert printer-select
4 IRQE Set to enable printer interrupts
7-5   Returns with 1
27B-27F Rd/Wr 0-7 x Don't cares
2F8       Serial port 2
  Rd 0-7   Receive buffer
Wr 0-7   Transmit buffer
2F9 Rd/Wr 0-7   Interrupt enable
2FA Rd 0-7   Interrupt Identification
2FB Rd/Wr 0-7   Line control
2FC Rd/Wr 0-7   MODEM control
2FD Rd/Wr 0-7   Line status
2FE Rd/Wr 0-7   Modem status
2FF Rd/Wr 0-7   Scratch
378-37F       Printer port 1
3BC-3BF       MDA printer port
3F8-3FF       Serial port 1

The serial ports are identical to each other (apart from their address), as are the printer ports.

Table 3. Use re-definable STEbus I/O Addresses

When LK2A is made the SPCOM is accessed as a contiguous block of 24 I/O locations, whose base address is defined (in multiples of 32) on LK5. The bit functions of the registers are identical to the description given in the previous table. The SPCOM board will not respond to I/O locations base +18H to base +1FH, and so these locations are free for use by another board.

Address Dir Bit Name Function
base Rd/Wr 0-7 CD0-7 Centronics Data port
base+1 Rd 0-7   Printer status port
base+2 Rd 0-7   Printer control port
base+3
to
base+7
Rd 0-7   Don't cares
base+08H
to
base+0FH
      Serial port 1
base+10H
to
base+17H
      Serial port 2

Using the SPCOM

This manual does not cover the low-level control of the 8250A Asynchronous Communications Elements (ACE), as this will usually be done by the routines in the BIOS (Basic Input / Output System) ROM. If you wish to drive the SPCOM from a processor other than the SCPC88, then the 8250A technical manual from Intel or National Semiconductor contains the relevant details.

Before sending or receiving data the relevant handshake lines must be at the appropriate level. To enable transmission of data from the SPCOM, CTS needs to be low at the 8250A, and to enable reception DCD needs to be low. This means that these signals must be high when measured at the connector PL2, because inverting buffers are used.

To test the printer and RS232 channels, first boot up your operating system which will contain the drivers. Type control-P, some text, then a carriage-return. The line of text should appear on the printer. The printer should be set up for 1200 baud, by default.

The baud rates of the RS232 channels 1 and 2 can be set up by the PC-DOS command:

SET COM <rate>

where is the channel and <rate> is the baud rate. Hence the commands:

SET COM 1 2400
SET COM 2 9600

will set RS232 channel 1 for 2400 baud, and channel 2 for 9600 baud. You can also redirect the line printer output to an RS232 channel using the command:

MODE LPT#:= COM1

after which, pressing the print-screen key will cause the present screen contents to be printed out on a serial printer on RS232 channel 1.


Example Programs

A great many example programs can be obtained from the large range of PC software. There is a public-domain program called KERMIT which is used to transfer data across a variety of serial communication links. Other programs allow a PC system run as a terminal emulator. The parallel printer can be tested from an operating system by typing control P followed by a stream of characters terminated by a carriage return. The characters should then appear on the printer.


Component List

  Semiconductors
IC1 LS245
IC2, 3, 5 LS244
IC4 PAL20L10
IC6 LS688
IC7 LS04
IC8 PAL16R4
IC9 PPC1
IC10, 12, 16 1489
IC11, 13 8250A or equivalent
IC14, 15 1488
TR1, 2, 3 2N2369A
  Resistors
R1, 2 330R
R3-5 2k2
R6-14 33R
RP1, 5 4k7 x 5 SlL pack
RP2 4k7 x 8 SlL pack
  Capacitors
C1, 2 22µ 16V Tantalum
C3-1 5,17-22 100n ceramic
C16 2n2 ceramic plate
  Miscellaneous
XTAL1 1.8432 MHz crystal

Connections

PL1. STEbus 64-way a/c DIN41612

(for suitable backplanes refer to current catalogue).

PL2. PC-compatible printer connector

The connector PL2 on the SPCOM is designed to connect onto a ribbon-cable with a standard ribbon-cable socket. The printer end of the cable should have a PC-compatible 25-way D-type IDC connector fitted. Both connectors are shown as seen looking onto the SPCOM board or into the printer.

PC printer
compatible
25-way
D-type
connector
  Signal   26-way berg
connector
numbered
as for
ribbon cable
  not connected 26 26 o o 25
  o 13 PRINTER SELECTED 25  
25 o   GND 24 24 o o 23
  o 12 OUT OF PAPER 23  
24 o   GND 22 22 o o 21
  o 11 PRINTER BUSY 21  
23 o   GND 20 20 o o 19
  o 10 ACKNOWLEDGE 19  
22 o   GND 18 18 o o 17
  o 9 CD7 17  
21 o   GND 16 16 o o 15
  o 8 CD6 15  
20 o   GND 14 14 o o 13
  o 7 CD5 13  
19 o   GND 12 12 o o 11
  o 6 CD4 11  
18 o   GND 10 10 o o 9
  o 5 CD3 9  
17 o   SELECT PRINTER 8 8 o o 7
  o 4 CD2 7  
16 o   RESET PRINTER 6 6 o o 5
  o 3 CD1 5  
15 o   PRINTER ERROR 4 4 o o 3
  o 2 CD0 3  
14 o   SELECT AUTOFEED 2 2 o o 1
  o 1 STROBE 1

PL3. PC-compatible 20-way serial connections

Connects cable-mounted 10-way IDC socket (female) to two 9-way D-type IDC plugs (male), as used on the PC and compatibles. Note the numbering is as for the ribbon cable, not the 9-way D-connectors. The pinout of PL3 has been chosen so that the ribbon cable can be split into two halves each carrying an IDC cable-mounted D-type connector.

9-way
D-connectors
numbered as
PC standard
    numbered
as for
ribbon
cable
  20-way
serial
connector
        NC   20   20 o o 19
    o 5 GND   19          
9 o     Rl2   18   18 o o 17
    o 4 DTR2   17          
8 o     CTS2   16   16 o o 15
    o 3 TXD2   15          
7 o     RTS2   14   14 o o 13
    o 2 RXD2   13          
6 o     DSR2   12   12 o o 11
    o 1 DCD2   11          
        NC   10   10 o o 9
    o 5 GND   9          
9 o     Rl1   8   8 o o 7
    o 4 DTR1   7          
8 o     CTS1   6   6 o o 5
    o 3 TXD1   5          
7 o     RTS1   4   4 o o 3
    o 2 RXD1   3          
6 o     DSR1   2   2 o o 1
    o 1 DCD1   1          

PL4. Arcom standard 10-way serial connector

TXD2 out 10 _ _ 9 RXD2 in
RTS2 out 8     7 CTS2 in
nc 6     5 GND
CTS1 in 4     3 RTS1 out
RXD1 in 2     1 TXD1 out

PL4 carries the major RS232 signals, of the two serial channels, to an Arcom SERT1 adapter. A SERT1 carries two 25-way D-type connectors.

RS232 Serial output 25-way D-connector pinout

Note that there are no 25-way D-type connectors on the SPCOM board itself. The Arcom standard 10-way serial channel connector can be taken to an Arcom SERT1 board which carries two 25-way D-type connectors used on the majority of RS232 equipment. The pinout of these connectors is as below. Note that some signals (including RI, DTR, DCD, and DSR) are not carried by the SERT1. All signal directions are declared in respect to the SPCOM board.

    1 o          
        o 14    
serial data output. TxD 2 o        
        o 15    
serial data input. RxD 3 o        
        o 16    
Request To Send output. RTS 4 o        
        o 17    
Clear To Send input. CTS 5 o        
        o 18    
    6 o        
        o 19    
Signal ground GND 7 o        
        o 20    
    8 o        
        o 21    
    9 o        
        o 22    
    10 o        
        o 23    
    11 o        
        o 24    
    12 o        
        o 25    
    13 o        

Specification

Operating temperature 5°C to 55°C (non-condensing)
Power consumption (typ.) 5V ± 0.25V 0.5A
+12V ± 1V 40 mA
-12V ± 1V 40 mA
Functions 1 parallel printer port
2 RS232 serial channels
5, 6, 7 or 8 bits/character
1,1.5 or 2 stop bits
odd, even or no parity
Baud rates Up to 20k Baud asynchronous.
Bus STEbus
Bus connector 64a/c DIN 41612
Format Single Eurocard
Dimensions 183 × 100 × 14 mm
Weight 143g

Circuit Diagram